package com.ad.backstage.mapper;

import com.ad.backstage.model.PfCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rclia
 * @since 2021-03-10
 */
@Service
public interface PfCategoryMapper extends BaseMapper<PfCategory> {

    /**
     * 获取前20条且状态可用的记录
     * @return
     * @param params
     */
    List<PfCategory> selectLimit20(Map<String, String> params);
}
